<?php
/**
 * Description:
 *
 * @author      Eden
 * @datetime    2017/1/8 19:27
 * @copyright   WuHan HuQi Technology Co.,Ltd.
 * @url         http://cnhuqi.com
 */

class Address extends WX_Controller
{
    /**
     * 初始化
     * @throws Exception
     */
    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        $this->load->view('wx/center/address/lists.html');
    }

    public function select()
    {
        $this->load->view('wx/center/address/select.html');
    }

    public function lists()
    {
        $this->load->view('wx/center/address/add.html');
    }

    public function add()
    {
        $this->load->view('wx/center/address/add.html');
    }

    /**
     * 编辑
     */
    public function edit()
    {
        $id = $this->input->get('id');
        if (empty($id)) {
            show_404();
        }
        $this->load->view('wx/center/address/edit.html', [
            'addressId' => $id
        ]);
    }
}
